/*

FileName : assign.cpp

Author   : chaos

Date     : 07/08/17 15:41:53

*/
#include <iostream>
using namespace std;

int main(void)
{
    int temp = 2;
    int *ptr = &temp;
    cout << "The address of temp: " << &temp << endl;
    cout << " The value of temp: " << temp << endl << endl;

    cout << "The address of ptr : " << &ptr << endl;
    cout << "The value of ptr : " << ptr << endl;
    cout << "The value of ptr's value address : " << *ptr << endl << endl;

    *ptr = 3;

    cout << "After *ptr=3" << endl;
    cout << "The value of temp: " << temp << endl;
    cout << "The value of ptr's value address : " << *ptr << endl;



    return 0;
}
